<include file="Public:head" />
<include file="Public:header" />
<include file="Public:left" />

<section id='content'>
<div class='container-fluid'>
<div class='row-fluid' id='content-wrapper'>
<div class='span12'>
<div class='row-fluid'>
    <div class='span12'>
        <div class='page-header'>
            <h1 class='pull-left'>
                <i class='icon-table'></i>
                <span>简历列表</span>
            </h1>
            
        </div>
    </div>
</div>

<div class='row-fluid'>
   <div class='span12'>
            <div class='pull-right'>
                <form action="{:U('Resume/resume_list')}" method="post" style="margin:0px;">
                    <input id="search_key" placeholder="姓名关键字" type="text" name="name">
                    <input type="submit" value="搜索" name="sub" style="margin-bottom:10px;">
                </form>
        </div>
    </div>
</div>


<div class='row-fluid'>
    <div class='span12 box bordered-box blue-border' style='margin-bottom:0;'>
        <div class='box-header blue-background'>
            <div class='title'>简历列表</div>
            
        </div>
        <div class='box-content box-no-padding'>
            <div class='responsive-table'>
                <div class='scrollable-area'>
                    <table class='table' style='margin-bottom:0;'>
                        <thead>
                        <tr>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>年龄</th>
                            <th>身高/体重</th>
                            <th>学历</th>
                            <th>婚否</th>
                            <th>电话</th>
                            <th>现居</th>
                            <th>更新时间</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                            <volist name="list.data" id="h">
                                <tr>
                                    <td>{$h.truename}</td>                                 
                                    <td>{$h.xingbie|format_xingbie}</td>
                                    <td>{$h.shengri|format_age}岁</td>
                                    <td>{$h.shengao}cm/{$h.tizhong}kg</td>
                                    <td>{$h.xueli|getxueli}</td>
                                    <td><switch name="h.hunyin">
                                            <case value="1" >未婚</case>
                                            <case value="2">已婚</case>
                                            <case value="3">已婚已育</case>
                                        </switch></td>
                                    <td>{$h.phone}</td>
                                    <td>{$h.pro|getareaname}-{$h.city|getareaname}-{$h.area|getareaname}</td>
                                    <td>{$h.ctime|date="Y-m-d H:i",###}</td>
                                    <td>
										<switch name="h.is_del">
											<case value="1" break="1">已删除</case>
											<case value="0" break="1">正常</case>
										</switch>
									</td>
                                    <td>
                                        <div class='text-left'>
                                           <a class='btn btn-success btn-mini' data-toggle='modal' href='#modal-info{$h.info_id}' role='button' >
                                                <i class='icon-eye-open' ></i>
                                            </a>
                                            
                                            <a class='btn btn-danger btn-mini'  onclick="del_resume({$h.info_id});">
                                                <i class='icon-remove' ></i>
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                            <div class='modal hide fade' id='modal-info{$h.info_id}' role='dialog' tabindex='-1'>
                                    <div class='modal-body'>
                                        <p><image src="{$h.pic.url}" style="width:400px;">
                                        </p>
                                        <hr/>
                                        <volist name="h.exper" id="v">
                                        <p>起止时间：{$v.jobbegin}-- {$v.jobend}
                                        </p>
                                        <p>公司或品牌：{$v.jobname}
                                        </p>
                                        <p>职位：{$v.jobzhiwei}
                                        </p>
                                        </volist>
                                        <hr/>
                                        <p>自我介绍：{$h.resume.myinfo}
                                        </p>

                                    </div>  
                                    <div class='modal-footer'>
                                        <button class='btn' data-dismiss='modal'>关闭</button>
                                    </div>
                                </div>
                            </volist>
                            <script type="text/javascript">
                                function del_resume(val){
                                    $.post("__URL__/del_resume", { "id": val},
                                       function(data){
                                        if (data.status==1) {
                                          location.replace(location.href);  }
                                       }, "json");
                                            
                                }        
                                </script>
                        </tbody>
                    </table>
                    <div>
                            {$list.html}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</div>
</div>
</div>
</section>
</div>

<include file="Public:bottom" />
<script type="text/javascript">
    $(document).ready(function () {
      $("ul[class='nav nav-stacked']").removeClass('in');
      $("#resume").addClass('in');
      $("li[class='guan']").removeClass('active');
      $("#resume_list").addClass('active');
    });
</script>